package com.gitee.qdbp.general.trade.biz.order.manage.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.trade.api.order.manage.model.OrderPaymentBean;
import com.gitee.qdbp.general.trade.api.order.manage.model.OrderPaymentWhere;
import com.gitee.qdbp.general.trade.api.order.manage.service.IOrderPaymentQueryer;
import com.gitee.qdbp.general.trade.biz.order.manage.basic.OrderPaymentBasic;

/**
 * 订单支付业务处理类
 *
 * @author zhh
 * @version 180622
 */
@Service
@Transactional(readOnly = true)
public class OrderPaymentQueryer implements IOrderPaymentQueryer {

    /** 订单支付DAO **/
    @Autowired
    private OrderPaymentBasic orderPaymentBasic;

    @Override
    public OrderPaymentBean find(String id) throws ServiceException {
        return orderPaymentBasic.findById(id);
    }

    @Override
    public OrderPaymentBean find(OrderPaymentWhere where) throws ServiceException {
        return orderPaymentBasic.find(where);
    }

    @Override
    public PageList<OrderPaymentBean> list(OrderPaymentWhere where, OrderPaging paging) throws ServiceException {
        return orderPaymentBasic.list(where, paging);
    }

}